package com.android.user.mvp.present;

import com.android.common.base.BasePresentImpl;
import com.android.common.base.BaseView;
import com.android.common.network.BusinessObserver;
import com.android.user.mvp.model.LoginApi;

public class LoginPresent extends BasePresentImpl<BaseView, LoginApi> {

    public static final String LOGIN = "login";

    public LoginPresent(BaseView loginView){
        super(loginView);
    }
    /**
     * 获取广告对象
     */
    public void login(){
        compose(getService(LoginApi.class).login())
            .subscribe(new BusinessObserver<>(mBaseView,LOGIN));
    }
}
